home *** CD-ROM | disk | FTP | other *** search
- property pSaturnList, pSaturnCounter, pLastSaturnTime, pSaturnIntervalTime
-
- on new me
- set pSaturnList to [23, 24, 25, 24]
- set pSaturnCounter to 1
- set pLastSaturnTime to the timer
- set pSaturnIntervalTime to 7
- return me
- end
-
- on mUpdateSaturn me
- if the timer < (pLastSaturnTime + pSaturnIntervalTime) then
- exit
- end if
- set the castNum of sprite 2 to getAt(pSaturnList, pSaturnCounter)
- set pSaturnCounter to pSaturnCounter + 1
- if pSaturnCounter = 5 then
- set pSaturnCounter to 1
- end if
- set pLastSaturnTime to the timer
- end
-